/**
 * @(#) Task.java
 */
package com.john;

import java.util.ArrayList;
import java.util.List;

public class Task {

    private Pert containedin;
    /*
     * Not using this right now but it will be usefull in da 
     * future.
     */
    private List<Edge> outgoing;
    private List<Edge> incoming;
    private String tIdentifier;
    private int duration;
    private float earlyStart;
    private float earlyFinish;
    private float lateStart;
    private float lateFinish;
    private float slack;
    private String taskId;

    public Task(Pert pert, String strId, int durat) {
        this.containedin = pert;
        this.tIdentifier = strId;
        this.duration = durat;
        incoming = new ArrayList<>();
        outgoing = new ArrayList<>();
    }
    //==================GET-SET

    public Pert getContainedin() {
        return containedin;
    }

    public void setContainedin(Pert containedin) {
        this.containedin = containedin;
    }

    public List<Edge> getOutgoing() {
        return outgoing;
    }

    public void setOutgoing(List<Edge> outgoing) {
        this.outgoing = outgoing;
    }

    public List<Edge> getIncoming() {
        return incoming;
    }

    public void setIncoming(List<Edge> incoming) {
        this.incoming = incoming;
    }

    public String gettIdentifier() {
        return tIdentifier;
    }

    public void settIdentifier(String tIdentifier) {
        this.tIdentifier = tIdentifier;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public float getEarlyStart() {
        return earlyStart;
    }

    public void setEarlyStart(float earlyStart) {
        this.earlyStart = earlyStart;
    }

    public float getEarlyFinish() {
        return earlyFinish;
    }

    public void setEarlyFinish(float earlyFinish) {
        this.earlyFinish = earlyFinish;
    }

    public float getLateStart() {
        return lateStart;
    }

    public void setLateStart(float lateStart) {
        this.lateStart = lateStart;
    }

    public float getLateFinish() {
        return lateFinish;
    }

    public void setLateFinish(float lateFinish) {
        this.lateFinish = lateFinish;
    }

    public float getSlack() {
        return slack;
    }

    public void setSlack(float slack) {
        this.slack = slack;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }
}
